# Makefile 
CC = aarch64-linux-gnu-gcc 
AS = aarch64-linux-gnu-as 
LD = aarch64-linux-gnu-ld 
 
all: calculator 
 
calculator: calculator.s
    $(AS) -g -o calculator.o calculator.s
    $(LD) -o calculator calculator.o 
 
run:
    qemu-aarch64 -L /usr/aarch64-linux-gnu ./calculator 
 
clean:
    rm -f calculator *.o 

aarch64-linux-gnu-as -g -o calculator.o calculator.s
aarch64-linux-gnu-ld -o calculator calculator.o 